import { observable, action } from 'mobx'

class AppStore {
  @observable todos = ['北京', '上海', '天津']

  @action add(txt) {
    this.todos.push(txt)
  }

  @action del(id) {
    console.log(id);
    this.todos.pop();
  }
}


export default new AppStore();